<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/LoginServlet" method="post">
<table style="border:2px solid #0094f ; border-collapse:collapse;" align="center">
<tr><td colspan=2 align="center">用户登录
<span style="color:red">${errorMsg}</span>
</td>
</tr>
<tr>
<td align="right">用户名：</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td align="right">密码：</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td colspan=2 align="center">
<input type="submit" value="登录" />
<input type="reset" value="重置 " />
</td>
</tr>
</table>
</form>
</body>
</html>